﻿#include "TcpServerController.h"

#include <QDebug>

namespace Core {

	TcpServerController::TcpServerController(QObject *parent)
		: QObject(parent)
		, m_pTcpServer(NULL)
	{
		m_pTcpServer = new Common::TcpServer(this);
	}

	TcpServerController::~TcpServerController()
	{
	}

	bool TcpServerController::setCreateServer(QString strIp, int port)
	{
		return m_pTcpServer->createServer(strIp, port);
	}

	void TcpServerController::setCloseServer()
	{
		m_pTcpServer->closeServer();
	}

}//namespace Core 